Browse Source

Default photo title now "Untitled"

Tobias Reich 8 years ago
parent
commit
071d0c25ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      php/Modules/Photo.php

+ 1 - 1
php/Modules/Photo.php

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