summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-12-01 21:18:00 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-12-01 21:18:00 +0100
commitd9c7f031cf525229238c1f8ab02a44436ee2c32e (patch)
treeb7452e1b932ffbe9a20c723549c9d08d4cc12090
parentef22efd7c7b0a9006d43ef207450768722815453 (diff)
Removed a strict type check from the rotate() function of the Image Manipulation Class.
-rw-r--r--system/libraries/Image_lib.php2
-rw-r--r--user_guide/changelog.html1
2 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php
index 16201ee9e..1b2d33de8 100644
--- a/system/libraries/Image_lib.php
+++ b/system/libraries/Image_lib.php
@@ -397,7 +397,7 @@ class CI_Image_lib {
// Allowed rotation values
$degs = array(90, 180, 270, 'vrt', 'hor');
- if ($this->rotation_angle == '' OR ! in_array($this->rotation_angle, $degs, TRUE))
+ if ($this->rotation_angle == '' OR ! in_array($this->rotation_angle, $degs))
{
$this->set_error('imglib_rotation_angle_required');
return FALSE;
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index a0c0fd06b..2c2f63ba1 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -68,6 +68,7 @@ SVN Revision: </p>
<li>A "HTTP/1.1 400 Bad Request" header is now sent when disallowed characters are encountered.</li>
<li>Added &lt;big&gt;, &lt;small&gt;, &lt;q&gt;, and &lt;tt&gt; to the Typography parser's inline elements.</li>
<li>Added more accurate error reporting for the Email library when using sendmail.</li>
+ <li>Removed a strict type check from the <kbd>rotate()</kbd> function of the <a href="libraries/image_lib.html">Image Manipulation Class</a>.</li>
</ul>
</li>
<li>Database