mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
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
This commit is contained in:
7
i.php
7
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++;
|
||||
|
||||
Reference in New Issue
Block a user