From d65473d1bcc83b0c3f77db6d72d97f3c2273fded Mon Sep 17 00:00:00 2001 From: z0rglub Date: Wed, 21 Jan 2004 07:49:57 +0000 Subject: Php warning correction git-svn-id: http://piwigo.org/svn/branches/release-1_3@306 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin') 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; -- cgit v1.2.3