diff options
author | z0rglub <z0rglub@piwigo.org> | 2004-03-31 21:03:03 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2004-03-31 21:03:03 +0000 |
commit | fdbb2d6681d9242828b2bd57f065c7cba3325858 (patch) | |
tree | e99fc7ed33ccb3e8a682fd6e8e505640bd719f5c /include/functions_category.inc.php | |
parent | 576cdcdb09e556bfd6f19d93998480f0438a37a5 (diff) |
PHP Warning correction
git-svn-id: http://piwigo.org/svn/branches/release-1_3@406 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_category.inc.php')
-rw-r--r-- | include/functions_category.inc.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php index 77f0234a3..ec7d97a51 100644 --- a/include/functions_category.inc.php +++ b/include/functions_category.inc.php @@ -107,8 +107,11 @@ function get_user_plain_structure() foreach ( $infos as $info ) { if ( $info == 'uc.date_last' ) { - list($year,$month,$day) = explode( '-', $row['date_last'] ); - $category['date_last'] = mktime(0,0,0,$month,$day,$year); + if ( isset( $row['date_last'] ) and $row['date_last'] != '' ) + { + list($year,$month,$day) = explode( '-', $row['date_last'] ); + $category['date_last'] = mktime(0,0,0,$month,$day,$year); + } } else if ( isset( $row[$info] ) ) $category[$info] = $row[$info]; else $category[$info] = ''; |