Require login to save album info and add manufacturer, scale to album info
This commit is contained in:
parent
4185f909c4
commit
bb46045e41
|
@ -2,6 +2,8 @@
|
|||
|
||||
require '../header.php';
|
||||
|
||||
requireLogin();
|
||||
|
||||
$data = array();
|
||||
$data["success"] = false;
|
||||
|
||||
|
@ -16,6 +18,8 @@ if ( $album->getID() == 0 ) {
|
|||
|
||||
$album->setTitle($_REQUEST['title']);
|
||||
$album->setDescription($_REQUEST['description']);
|
||||
$album->setManufacturer($_REQUEST['manufacturer']);
|
||||
$album->setScale($_REQUEST['scale']);
|
||||
$album->save();
|
||||
$data["success"] = true;
|
||||
$data["album"] = $album;
|
||||
|
|
Loading…
Reference in New Issue
Block a user