Default photo title now "Untitled"

This commit is contained in:
Tobias Reich 2016-03-06 16:50:56 +01:00
parent b6b568b146
commit 071d0c25ec

View File

@ -882,7 +882,7 @@ final class Photo {
* Sets the title of a photo. * Sets the title of a photo.
* @return boolean Returns true when successful. * @return boolean Returns true when successful.
*/ */
public function setTitle($title) { public function setTitle($title = 'Untitled') {
// Check dependencies // Check dependencies
Validator::required(isset($this->photoIDs), __METHOD__); Validator::required(isset($this->photoIDs), __METHOD__);