aboutsummaryrefslogtreecommitdiffstats
path: root/admin/infos_images.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-01-21 23:33:56 +0000
committerz0rglub <z0rglub@piwigo.org>2004-01-21 23:33:56 +0000
commit40a11658a9f54d04f94d3febc204d09a86622e3e (patch)
tree96fd59aed7a124f73faa74d25a0f76d6d8233da4 /admin/infos_images.php
parent5c5c69f9a03eb956399d1394decfb4092c4959da (diff)
Php warnings correction
git-svn-id: http://piwigo.org/svn/branches/release-1_3@311 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/infos_images.php')
-rw-r--r--admin/infos_images.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/admin/infos_images.php b/admin/infos_images.php
index 087216f47..4d0a6afc0 100644
--- a/admin/infos_images.php
+++ b/admin/infos_images.php
@@ -179,7 +179,9 @@ if ( isset( $page['cat'] ) )
$result = mysql_query( $query );
while ( $row = mysql_fetch_array( $result ) )
{
- $specific_keywords = explode( ',', $row['keywords'] );
+ if ( !isset( $row['keywords'] ) ) $specific_keywords = array();
+ else $specific_keywords = explode( ',', $row['keywords'] );
+
$common_keywords = get_keywords( $_POST['keywords_cat'] );
// first possiblity : adding the given keywords to all the pictures
if ( $_POST['common_keywords'] == 'add' )