aboutsummaryrefslogtreecommitdiffstats
path: root/i.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2012-06-05 18:06:53 +0000
committerrvelices <rv-github@modusoptimus.com>2012-06-05 18:06:53 +0000
commit34e6f1aa4905228d317511cdd4b57b759261ad39 (patch)
tree0d6339d82ffdaec1e9cc209b4d67717aebb566a8 /i.php
parent29970791817164b0c158cbdc961bb93160721af1 (diff)
multisize - avoid php warning for rotation_angle; better error logging; javascript avoid navigation to empty # anchor
git-svn-id: http://piwigo.org/svn/trunk@15551 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'i.php')
-rw-r--r--i.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/i.php b/i.php
index 1de7dbf6e..44faa32ce 100644
--- a/i.php
+++ b/i.php
@@ -116,6 +116,7 @@ function ierror($msg, $code)
}
//todo improve
echo $msg;
+ ilog('ERROR', $code, $msg, $_SERVER['REQUEST_URI']);
exit;
}
@@ -486,6 +487,10 @@ SELECT *
ilog("db error", $e->getMessage());
}
}
+else
+{
+ $page['rotation_angle'] = 0;
+}
mysql_close($pwg_db_link);
try_switch_source($params, $src_mtime);
@@ -504,7 +509,7 @@ $timing['load'] = time_step($step);
$changes = 0;
// rotate
-if (0 != (int)$page['rotation_angle'])
+if (0 != $page['rotation_angle'])
{
$image->rotate($page['rotation_angle']);
$changes++;