[Cache] fix parse error on PHP 5.5
This commit is contained in:
parent
0f76308929
commit
ef6fc09260
@ -339,7 +339,7 @@ trait PdoTrait
|
|||||||
foreach ($serialized as $id => $data) {
|
foreach ($serialized as $id => $data) {
|
||||||
$result = $stmt->execute();
|
$result = $stmt->execute();
|
||||||
|
|
||||||
if (null === $driver && !($result instanceof Result ? $result : $stmt)->rowCount()) {
|
if (null === $driver && !($result instanceof Result ? $result->rowCount() : $stmt->rowCount())) {
|
||||||
try {
|
try {
|
||||||
$insertStmt->execute();
|
$insertStmt->execute();
|
||||||
} catch (DBALException $e) {
|
} catch (DBALException $e) {
|
||||||
|
Reference in New Issue
Block a user