Merge branch 'mattsches-hotfix/undefined_vars' into develop

This commit is contained in:
Tobias Reich 2015-12-08 09:45:40 +01:00
commit 5b97a295d5
6 changed files with 6 additions and 12 deletions

View File

@ -33,7 +33,7 @@ class Guest extends Access {
# Error
default: exit('Error: Function not found! Please check the spelling of the called function.');
return false; break;
break;
}

View File

@ -195,7 +195,7 @@ class Album extends Module {
# Execute query
$albums = $this->database->query($query);
if (!$albums) {
Log::error($database, __METHOD__, __LINE__, 'Could not get all albums (' . $database->error . ')');
Log::error($this->database, __METHOD__, __LINE__, 'Could not get all albums (' . $this->database->error . ')');
exit('Error: ' . $this->database->error);
}

View File

@ -277,6 +277,7 @@ if(!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
# This avoids problems with placeholders in user-input
# $skip = Number of placeholders which need to be skipped
$skip = 0;
$temp = '';
$num = array(
'placeholder' => substr_count($query, '?'),
'data' => count($data)

View File

@ -11,7 +11,6 @@ class Import extends Module {
private $database = null;
private $settings = null;
private $albumIDs = null;
public function __construct($database, $plugins, $settings) {

View File

@ -486,8 +486,6 @@ class Photo extends Module {
if (extension_loaded('imagick')&&$this->settings['imagick']==='1') {
$rotateImage = 0;
switch ($info['orientation']) {
case 3:
@ -535,7 +533,6 @@ class Photo extends Module {
break;
case 3:
$process = true;
$sourceImg = imagerotate($sourceImg, -180, 0);
break;
@ -552,7 +549,6 @@ class Photo extends Module {
break;
case 6:
$process = true;
$sourceImg = imagerotate($sourceImg, -90, 0);
$newWidth = $info['height'];
$newHeight = $info['width'];
@ -566,7 +562,6 @@ class Photo extends Module {
break;
case 8:
$process = true;
$sourceImg = imagerotate($sourceImg, 90, 0);
$newWidth = $info['height'];
$newHeight = $info['width'];

View File

@ -20,7 +20,6 @@ class Plugins implements \SplSubject {
if (!isset($files)) return false;
# Init vars
$plugins = $this;
$this->files = $files;
# Load plugins