Explorar o código

Boolean if statement fix for update check - i am an idiot

causefx %!s(int64=7) %!d(string=hai) anos
pai
achega
9e9285c069
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      api/functions/update-functions.php

+ 1 - 1
api/functions/update-functions.php

@@ -3,7 +3,7 @@
 function upgradeInstall($branch = 'v2-master', $stage)
 {
 	$notWritable = array_search(false, pathsWritable($GLOBALS['paths']));
-	if ($notWritable) {
+	if ($notWritable == false) {
 		ini_set('max_execution_time', 0);
 		set_time_limit(0);
 		$url = 'https://github.com/causefx/Organizr/archive/' . $branch . '.zip';