summaryrefslogtreecommitdiffstats
path: root/lib
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:19 +0200
commit3970be3d7f7ba93db6689494a570d8da43bd7623 (patch)
tree6ce68385840c97e70e32b059d5280f58a8c19e7e /lib
parent31d48d4ba4652dc46f83825f1d9efe8cd408167f (diff)
downloadnextcloud-server-3970be3d7f7ba93db6689494a570d8da43bd7623.tar.gz
nextcloud-server-3970be3d7f7ba93db6689494a570d8da43bd7623.zip
fix variable name and undefined index notice
Diffstat (limited to 'lib')
-rw-r--r--lib/image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/image.php b/lib/image.php
index f119c99633f..4d1e7aa4bc7 100644
--- a/lib/image.php
+++ b/lib/image.php
@@ -402,7 +402,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;