ソースを参照

#4148 Build-in API support

Alex Trofimov 3 年 前
親
コミット
a83db12e47
1 ファイル変更、2 行追加、2 行削除
  1. 2 2
      inc/classes/BxDolApiQuery.php

+ 2 - 2
inc/classes/BxDolApiQuery.php

@@ -43,12 +43,12 @@ class BxDolApiQuery extends BxDolDb implements iBxDolSingleton
 
     public function getOrigin ($sUrl)
     {
-        return $this->getOne("SELECT `url` FROM `sys_api_origins` WHERE `url` = ?", $sUrl);
+        return $this->getOne("SELECT `url` FROM `sys_api_origins` WHERE `url` = :url", ['url' => $sUrl]);
     }
 
     public function getKey ($sKey)
     {
-        return $this->getOne("SELECT `key` FROM `sys_api_keys` WHERE `key` = ?", $sKey);
+        return $this->getOne("SELECT `key` FROM `sys_api_keys` WHERE `key` = :key", ['key' => $sKey]);
     }
 }