mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-25 15:22:24 +01:00
Fix classe Database
This commit is contained in:
parent
3316b95a5e
commit
578bac8d1e
@ -46,8 +46,7 @@ function database()
|
||||
*/
|
||||
function prepare($parameter)
|
||||
{
|
||||
if (!empty($parameter))
|
||||
return database()->prepare($parameter);
|
||||
return database()->prepare($parameter);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -390,9 +390,7 @@ class Database extends Util\Singleton
|
||||
*/
|
||||
public function prepare($parameter)
|
||||
{
|
||||
if (!empty($parameter))
|
||||
return $this->getPDO()->quote($parameter);
|
||||
|
||||
return $this->getPDO()->quote($parameter);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user