Permalink
Browse files

[ticket/963] Suppress error when rotating is not enabled.

  • Loading branch information...
1 parent 2c56af3 commit 5f906572f8570ab63fbb2470c10e7b3d69df69e0 @nickvergessen nickvergessen committed Apr 23, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 root/includes/gallery/upload.php
@@ -517,6 +517,11 @@ public function get_exif($path = false)
public function get_rotating()
{
+ if (!isset($this->file_rotating[$this->file_count]))
+ {
+ // If the template is still outdated, you'd get an error here...
+ return 0;
+ }
if (($this->file_rotating[$this->file_count] % 90) != 0)
{
return 0;

0 comments on commit 5f90657

Please sign in to comment.