Explorar o código

Add Not Found Check (#603)

OwN-3m-All %!s(int64=3) %!d(string=hai) anos
pai
achega
4c36133a0f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/extras/extras.php

+ 1 - 1
modules/extras/extras.php

@@ -442,7 +442,7 @@ function exec_ogp_module()
 			}
 			}
 		}
 		}
 		
 		
-		if( ! $contents && !isset($_GET["type"]) )
+		if( (!$contents || strtolower($contents) == "not found") && !isset($_GET["type"]) )
 		{
 		{
 			print_failure('Unable to get contents from: ' . $used_file . '<br>Check your Administration --> Panel Settings --> Github username and branch settings.&nbsp; These settings should have no value (be blank) unless you\'re a developer and know how to use these settings!');
 			print_failure('Unable to get contents from: ' . $used_file . '<br>Check your Administration --> Panel Settings --> Github username and branch settings.&nbsp; These settings should have no value (be blank) unless you\'re a developer and know how to use these settings!');
 			continue;
 			continue;