aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-07-21 21:42:11 +0000
committerz0rglub <z0rglub@piwigo.org>2003-07-21 21:42:11 +0000
commitea4bf112f99edd98092f2bbfbeaf11f7460b3433 (patch)
treedf173ad677b87ed6c087ca335ceeeaecb4dd4ed7 /picture.php
parent701b1431513f8c42d1adc0de9739464494bd6bfa (diff)
replacing "&&" by "and" in if conditions
git-svn-id: http://piwigo.org/svn/trunk@31 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'picture.php')
-rw-r--r--picture.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/picture.php b/picture.php
index 2fb3d3f3a..84c1e18dd 100644
--- a/picture.php
+++ b/picture.php
@@ -21,7 +21,7 @@ include_once( './include/init.inc.php' );
//-------------------------------------------------- access authorization check
check_cat_id( $_GET['cat'] );
check_login_authorization();
-if ( isset( $page['cat'] ) && is_numeric( $page['cat'] ) )
+if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) )
{
check_restrictions( $page['cat'] );
}
@@ -432,7 +432,7 @@ if ( $page['cat'] == 'fav' )
$vtp->closeSession( $handle, 'favorite' );
}
//------------------------------------ admin link for information modifications
-if ( $user['status'] == "admin" && is_numeric( $page['cat'] ) )
+if ( $user['status'] == "admin" and is_numeric( $page['cat'] ) )
{
$vtp->addSession( $handle, 'modification' );
$url = './admin/admin.php?page=infos_images&amp;cat_id='.$page['cat'];
@@ -511,7 +511,7 @@ if ( $conf['show_comments'] )
{
$vtp->addSession( $handle, 'comments' );
// comment registeration
- if ( isset( $_POST['content'] ) && $_POST['content'] != '' )
+ if ( isset( $_POST['content'] ) and $_POST['content'] != '' )
{
$author = $user['username'];
if ( $_POST['author'] != '' )
@@ -539,8 +539,8 @@ if ( $conf['show_comments'] )
}
// comment deletion
if ( isset( $_GET['del'] )
- && is_numeric( $_GET['del'] )
- && $user['status'] == 'admin' )
+ and is_numeric( $_GET['del'] )
+ and $user['status'] == 'admin' )
{
$query = 'DELETE FROM '.PREFIX_TABLE.'comments';
$query.= ' WHERE id = '.$_GET['del'].';';