mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-10 18:53:01 +02:00
Corretion of PHP warnings
git-svn-id: http://piwigo.org/svn/branches/release-1_3@279 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user