Skip to content

Commit d0c38f4

Browse files
VINADES.,JSChoaquynhtim99
VINADES.,JSC
authored andcommitted
Fix function nv_blocks_content (fix nukeviet#2890)
1 parent fdf0999 commit d0c38f4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

includes/core/user_functions.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
die('Stop!!!');
1313
}
1414

15-
//Meta Property
16-
$meta_property = array(
15+
// Meta Property
16+
$meta_property = [
1717
'og:title' => '',
1818
'og:type' => '',
1919
'og:description' => '',
2020
'og:site_name' => '',
2121
'og:image' => '',
2222
'og:url' => ''
23-
);
23+
];
2424

2525
/**
2626
* nv_create_submenu()
@@ -148,12 +148,12 @@ function nv_blocks_content($sitecontent)
148148

149149
$array_position = array_keys($_posReal);
150150
foreach ($blocks as $_key => $_row) {
151-
if ($_row['exp_time'] != 0 and $_row['exp_time'] <= NV_CURRENTTIME) {
152-
$unact[] = $_row['bid'];
151+
if (!defined('NV_IS_DRAG_BLOCK') and !$_row['act']) {
153152
continue;
154153
}
155154

156-
if (!defined('NV_IS_DRAG_BLOCK') and !$_row['act']) {
155+
if ($_row['exp_time'] != 0 and $_row['exp_time'] <= NV_CURRENTTIME) {
156+
$unact[] = $_row['bid'];
157157
continue;
158158
}
159159

0 commit comments

Comments
 (0)