$a->internalRedirect($_SESSION['photo_return']);
}
- if (x($_POST,'submit') && ($_POST['submit'] === L10n::t('Cancel'))) {
+ if (!empty($_POST['submit']) && ($_POST['submit'] === L10n::t('Cancel'))) {
$a->internalRedirect($_SESSION['photo_return']);
}
/**
* Updates tags from an item
+ *
* @param $item_id
* @param $tags array
+ * @throws Exception
*/
function update_tags($item_id, $tags){
if (empty($item_id) || empty($tags)){