1
0
mirror of https://github.com/dg/dibi.git synced 2025-07-31 03:10:14 +02:00
This commit is contained in:
David Grudl
2018-09-17 13:28:56 +02:00
parent f26bb27504
commit e1256eca87
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ class DateTime extends \DateTime
{
if (is_numeric($time)) {
parent::__construct('@' . $time);
$this->setTimeZone($timezone ? $timezone : new \DateTimeZone(date_default_timezone_get()));
$this->setTimeZone($timezone ?: new \DateTimeZone(date_default_timezone_get()));
} elseif ($timezone === null) {
parent::__construct($time);
} else {

View File

@@ -547,7 +547,7 @@ class PostgreDriver implements Dibi\Driver, Dibi\ResultDriver, Dibi\Reflector
$res = $this->query($query);
$tables = pg_fetch_all($res->resultSet);
return $tables ? $tables : [];
return $tables ?: [];
}