maximebf / atomik

Micro framework for PHP 5.3+ [UNMAINTAINED]
MIT License
46 stars 18 forks source link

selectValue in DB plugin #52

Open rcamprodon opened 8 years ago

rcamprodon commented 8 years ago

selectValue($tableName, $column, $where = null) is implemented as

$stmt = $this->executeSelect($tableName, $column, $where,$afterwhere); return $stmt->fetchColumn();

$afterwhere is not declared so this gives errors when errors are enabled. The solution is to replace $afterwhere by ''

Otherwise Atomik is really excellent!