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:
rvelices
2012-06-05 18:06:53 +00:00
parent 2997079181
commit 34e6f1aa49
4 changed files with 12 additions and 7 deletions

7
i.php
View File

@@ -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++;