Procházet zdrojové kódy

Merge pull request #431 from own3mall/master

Load Settings Sooner
OwN-3m-All před 7 roky
rodič
revize
8eeefb2473
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      ogp_api.php

+ 1 - 1
ogp_api.php

@@ -85,11 +85,11 @@ if(function_exists($function))
 	define("API_TABLE", $table_prefix."api_tokens");
 	// Connect to the database server and select database.
 	$db = createDatabaseConnection($db_type, $db_host, $db_user, $db_pass, $db_name, $table_prefix);
+	$settings = $db->getSettings();
 	
 	if(!is_authorized())
 		outputJSON(array("status" => '401', "message" => 'Unauthorized host'));
 	
-	$settings = $db->getSettings();
 	$db->checkApiTable();
 	$logged_in = false;