forgott to include query bindings into selectOne
This commit is contained in:
parent
f82e5456d2
commit
26515d7582
|
@ -88,7 +88,7 @@ class Db
|
||||||
*/
|
*/
|
||||||
public static function selectOne($query, array $bindings = [])
|
public static function selectOne($query, array $bindings = [])
|
||||||
{
|
{
|
||||||
$result = self::select($query);
|
$result = self::select($query, $bindings);
|
||||||
|
|
||||||
if(empty($result)) {
|
if(empty($result)) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue