summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-25 12:36:14 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-25 12:36:14 +0100
commit80d56ac6a0b704c1b480157422227626f63df67d (patch)
tree9ee9fae14748f6a40e498478b8f73f9812667f2f /plugins
parent78e60870d04782eb04a2278dfaffa429ce157230 (diff)
downloadliberty-80d56ac6a0b704c1b480157422227626f63df67d.tar.gz
liberty-80d56ac6a0b704c1b480157422227626f63df67d.tar.bz2
liberty-80d56ac6a0b704c1b480157422227626f63df67d.zip
mime.video: fix update returning false when no new uploadlive-2026-05-25
mime_video_update defaulted $ret=false and only set it true when a new file was uploaded or aspect meta was present. Saving an image edit page with an existing video attachment and no new upload always triggered "There was a problem updating the file settings". Changed default to true to match mime_image_update which does the same. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/mime.video.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mime.video.php b/plugins/mime.video.php
index 6d97ecc..8c7d8cb 100755
--- a/plugins/mime.video.php
+++ b/plugins/mime.video.php
@@ -105,7 +105,7 @@ function mime_video_store( &$pStoreRow ) {
* @return bool true on success, false on failure - mErrors will contain reason for failure
*/
function mime_video_update( &$pStoreRow, $pParams = null ) {
- $ret = false;
+ $ret = true;
if( BitBase::verifyId( $pStoreRow['attachment_id'] )) {
$pStoreRow['log'] = [];