From ef2ffdd716bde2751c79d8739f0ae8d47061f3c6 Mon Sep 17 00:00:00 2001 From: junkfix <165699921+junkfix@users.noreply.github.com> Date: Fri, 5 Apr 2024 20:54:56 +0100 Subject: [PATCH 1/2] fix folder thumb resets --- pictap.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pictap.php b/pictap.php index a2fcb6d..44de273 100644 --- a/pictap.php +++ b/pictap.php @@ -640,7 +640,7 @@ function scanFolder($dir,$force=0){ $did = $dirs['dirid']; - $dthm = null; + $dthm = $dirs['thm']; $old=[]; @@ -736,7 +736,7 @@ function scanFolder($dir,$force=0){ logger('Missing thumb '.$tn); updateFile($cfid, ['th'=>2]); } - if($filename === PICTAP->folder_thumb){ + if($filename === PICTAP->folder_thumb && !$dthm){ $dthm = $cfid; } } @@ -777,7 +777,7 @@ function scanFolder($dir,$force=0){ if(!$ft){$c['tk']=$filemtime;} $cfid = insertFile($c,$filename); } - if($filename === PICTAP->folder_thumb){ + if($filename === PICTAP->folder_thumb && !$dthm){ $dthm = $cfid; } From ea67a4ef5443bf3eb76d5919418c95627e1474a1 Mon Sep 17 00:00:00 2001 From: junkfix <165699921+junkfix@users.noreply.github.com> Date: Fri, 5 Apr 2024 20:56:05 +0100 Subject: [PATCH 2/2] Update version --- pictap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pictap.php b/pictap.php index 44de273..3384982 100644 --- a/pictap.php +++ b/pictap.php @@ -1,7 +1,7 @@