# HG changeset patch # User Matti Hamalainen # Date 1693089944 -10800 # Node ID 4dd202fffdf76d41e603a4b3c86b0d2f38259b3e # Parent 9210052bb64913bbb5822a3f34104023bf0d6b70 Cosmetics. diff -r 9210052bb649 -r 4dd202fffdf7 mgtool.php --- a/mgtool.php Sun Aug 27 01:45:36 2023 +0300 +++ b/mgtool.php Sun Aug 27 01:45:44 2023 +0300 @@ -499,9 +499,7 @@ // Get image title if (($xres = $xmpOb->xpath("RDF/Description/title/li")) !== FALSE) - { $xmpData["title"] = implode(" ", array_map(function($xe) { return (string) $xe; }, $xres)); - } return $xmpData; } @@ -564,6 +562,7 @@ // Key didn't exist, try for default if ($default !== NULL) $dst[$dkey] = $default; + return FALSE; } else @@ -572,6 +571,7 @@ // Optionally convert the input value $dst[$dkey] = mgConvertExifData($tmp, $vtype); + return TRUE; }