summaryrefslogtreecommitdiffstats
path: root/lib/image.php
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2012-06-10 17:25:19 +0200
committerBartek Przybylski <bart.p.pl@gmail.com>2012-06-10 17:25:50 +0200
commitc11f6cc3f9121fbb337c248807b802c72b18087b (patch)
tree36cdbad6070e3d3fc2361fb12441a46304be4a20 /lib/image.php
parent76f20eb57c4089b51ee506a000a21ab95727da43 (diff)
downloadnextcloud-server-c11f6cc3f9121fbb337c248807b802c72b18087b.tar.gz
nextcloud-server-c11f6cc3f9121fbb337c248807b802c72b18087b.zip
fix variable name and undefined index notice
Diffstat (limited to 'lib/image.php')
-rw-r--r--lib/image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/image.php b/lib/image.php
index d72960101f0..e5c59bacdc5 100644
--- a/lib/image.php
+++ b/lib/image.php
@@ -409,7 +409,7 @@ class OC_Image {
default:
// this is mostly file created from encrypted file
- $this->resource = imagecreatefromstring(\OC_Filesystem::file_get_contents(\OC_Filesystem::getLocalPath($newimgpath)));
+ $this->resource = imagecreatefromstring(\OC_Filesystem::file_get_contents(\OC_Filesystem::getLocalPath($imagepath)));
$itype = IMAGETYPE_PNG;
OC_Log::write('core','OC_Image->loadFromFile, Default', OC_Log::DEBUG);
break;