diff options
Diffstat (limited to '')
-rw-r--r-- | admin/include/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php index a3a6844f4..b049914dc 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -524,10 +524,10 @@ function get_plain_structure( $use_name = false ) while ( $row = mysql_fetch_array( $result ) ) { $plain_structure[$row['id']]['id'] = $row['id']; + if ( !isset( $row['id_uppercat'] ) ) $row['id_uppercat'] = 'NULL'; $plain_structure[$row['id']]['id_uppercat'] = $row['id_uppercat']; if ( $use_name ) $plain_structure[$row['id']]['name'] = $row['name']; // subcats list - if ( $row['id_uppercat'] == '' ) $row['id_uppercat'] = 'NULL'; if ( $row['id_uppercat'] != $id_uppercat ) { $page['subcats'][$id_uppercat] = $subcats; |