aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-01-21 07:49:57 +0000
committerz0rglub <z0rglub@piwigo.org>2004-01-21 07:49:57 +0000
commitd65473d1bcc83b0c3f77db6d72d97f3c2273fded (patch)
treed59d58c1000c1e2877accb82335c484b85c9f11a /admin/include/functions.php
parent9180de2f11005b75bbbd0966860e355530c3b2aa (diff)
Php warning correction
git-svn-id: http://piwigo.org/svn/branches/release-1_3@306 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions.php2
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;