]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
[Embed] Fixed use of undefined variable in fixup_files script
authorMiguel Dantas <biodantasgs@gmail.com>
Tue, 23 Jul 2019 10:08:48 +0000 (11:08 +0100)
committerDiogo Cordeiro <diogo@fc.up.pt>
Sat, 3 Aug 2019 16:49:36 +0000 (17:49 +0100)
plugins/Embed/scripts/fixup_files.php

index 0697714b94ec5d80d9b6d491b27bd84c76758fe8..eca3902c6455a47c99c117f8afce217d32cbdfdd 100755 (executable)
@@ -168,7 +168,7 @@ while ($fn->fetch()) {
 
     }
 
-    if ($fetch === true && !$dry) {
+    if (isset($fetch) && $fetch === true && !$dry) {
         $fetch = false;
         echo "Attempting to fetch Embed data\n";
         Event::handle('EndFileSaveNew', array($f));