Image.class.php bugs
This commit is contained in:
parent
363c59f6cb
commit
613817fc4f
1 changed files with 3 additions and 1 deletions
|
@ -63,6 +63,8 @@ class Image
|
|||
}
|
||||
|
||||
public static function upload($name, $data){
|
||||
ini_set('memory_limit', '128M');
|
||||
|
||||
$photo = null;
|
||||
$ext = null;
|
||||
|
||||
|
@ -126,7 +128,7 @@ class Image
|
|||
self::thumb($path, $thumb);
|
||||
|
||||
// Save to DB
|
||||
DB::get_instance()->query("UPDATE `images` SET `path` = ?, `thumb` = ?, `status` = ? WHERE `id` = ?", $path, $thumb, $status, $id);
|
||||
DB::get_instance()->query("UPDATE `images` SET `path` = ?, `thumb` = ?, `status` = 1 WHERE `id` = ?", $path, $thumb, $id);
|
||||
return [
|
||||
"path" => $path,
|
||||
"thumb" => $thumb
|
||||
|
|
Loading…
Add table
Reference in a new issue