aboutsummaryrefslogtreecommitdiffstats
path: root/i.php
diff options
context:
space:
mode:
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++;