aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-01-15 00:11:00 +0000
committergweltas <gweltas@piwigo.org>2004-01-15 00:11:00 +0000
commit855398f63e4215ed16413a89f781dd2f6cffa231 (patch)
treeb1c34cc609930352612e9e2ffbc88d91c33e9890 /admin
parentfb880db771f2ceb361fa8d8a1b065b1a564f3e52 (diff)
Corretion of PHP warnings
git-svn-id: http://piwigo.org/svn/branches/release-1_3@279 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/include/functions.php2
-rw-r--r--admin/picture_modify.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index ecab3782f..ea2669cb0 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -431,7 +431,7 @@ function update_category( $id = 'all' )
function check_date_format( $date )
{
// date arrives at this format : DD/MM/YYYY
- list($day,$month,$year) = explode( '/', $date );
+ @list($day,$month,$year) = explode( '/', $date );
return @checkdate( $month, $day, $year );
}
diff --git a/admin/picture_modify.php b/admin/picture_modify.php
index 31c89c438..beb295291 100644
--- a/admin/picture_modify.php
+++ b/admin/picture_modify.php
@@ -85,7 +85,7 @@ if ( isset( $_POST['submit'] ) )
// if the user ask the picture to be the representative picture of its
// category, the category is updated in the database (without wondering
// if this picture was already the representative one)
- if ( $_POST['representative-'.$row['category_id']] == 1 )
+ if ( isset($_POST['representative-'.$row['category_id']]) )
{
$query = 'UPDATE '.PREFIX_TABLE.'categories';
$query.= ' SET representative_picture_id = '.$_GET['image_id'];
@@ -144,7 +144,7 @@ if ( isset( $_POST['submit'] ) )
$result = mysql_query( $query );
while ( $row = mysql_fetch_array( $result ) )
{
- if ( $_POST['dissociate-'.$row['category_id']] == 1 )
+ if ( isset($_POST['dissociate-'.$row['category_id']]) )
{
$query = 'DELETE FROM '.PREFIX_TABLE.'image_category';
$query.= ' WHERE image_id = '.$_GET['image_id'];