diff --git a/include/text.php b/include/text.php index c0edd482b..b7f7b5abb 100644 --- a/include/text.php +++ b/include/text.php @@ -1830,8 +1830,7 @@ function file_tag_update_pconfig($uid, $file_old, $file_new, $type = 'file') { if (!intval($uid)) { return false; - } - if ($file_old == $file_new) { + } elseif ($file_old == $file_new) { return true; }