fix variable name and undefined index notice
This commit is contained in:
parent
31d48d4ba4
commit
3970be3d7f
|
@ -82,7 +82,7 @@ sort($images);
|
||||||
$arr = array();
|
$arr = array();
|
||||||
$tl = new \OC\Pictures\TilesLine();
|
$tl = new \OC\Pictures\TilesLine();
|
||||||
$ts = new \OC\Pictures\TileStack(array(), '');
|
$ts = new \OC\Pictures\TileStack(array(), '');
|
||||||
$previous_element = $images[0];
|
$previous_element = @$images[0];
|
||||||
for($i = 0; $i < count($images); $i++) {
|
for($i = 0; $i < count($images); $i++) {
|
||||||
$prev_dir_arr = explode('/', $previous_element);
|
$prev_dir_arr = explode('/', $previous_element);
|
||||||
$dir_arr = explode('/', $images[$i]);
|
$dir_arr = explode('/', $images[$i]);
|
||||||
|
|
|
@ -402,7 +402,7 @@ class OC_Image {
|
||||||
default:
|
default:
|
||||||
|
|
||||||
// this is mostly file created from encrypted file
|
// 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;
|
$itype = IMAGETYPE_PNG;
|
||||||
OC_Log::write('core','OC_Image->loadFromFile, Default', OC_Log::DEBUG);
|
OC_Log::write('core','OC_Image->loadFromFile, Default', OC_Log::DEBUG);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue