$medium should be a tinyint like defined in the database structure
This commit is contained in:
parent
9d12f2ce54
commit
b8caf48d7d
@ -123,7 +123,7 @@ class Photo extends Module {
|
|||||||
$photo_name = $exists['photo_name'];
|
$photo_name = $exists['photo_name'];
|
||||||
$path = $exists['path'];
|
$path = $exists['path'];
|
||||||
$path_thumb = $exists['path_thumb'];
|
$path_thumb = $exists['path_thumb'];
|
||||||
$medium = ($exists['medium']==='1' ? true : false);
|
$medium = ($exists['medium']==='1' ? 1 : 0);
|
||||||
$exists = true;
|
$exists = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -174,8 +174,8 @@ class Photo extends Module {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Create Medium
|
# Create Medium
|
||||||
if ($this->createMedium($path, $photo_name, $info['width'], $info['height'])) $medium = true;
|
if ($this->createMedium($path, $photo_name, $info['width'], $info['height'])) $medium = 1;
|
||||||
else $medium = false;
|
else $medium = 0;
|
||||||
|
|
||||||
# Set thumb url
|
# Set thumb url
|
||||||
$path_thumb = md5($id) . '.jpeg';
|
$path_thumb = md5($id) . '.jpeg';
|
||||||
|
Loading…
Reference in New Issue
Block a user