PM-2811: Upgrade ProcessMaker from 2.8 to 3.0 on Ubuntu, problem with close in propel
This commit is contained in:
9
gulliver/thirdparty/propel/Propel.php
vendored
9
gulliver/thirdparty/propel/Propel.php
vendored
@@ -602,11 +602,12 @@ class Propel {
|
||||
|
||||
foreach (self::$connectionMap as $cnn) {
|
||||
if (get_class($cnn) != "DBArrayConnection") {
|
||||
if (gettype($cnn->getResource()) == "resource" && $cnn->isConnected() && $cnn->lastQuery != $lastQuery) {
|
||||
$cnn->close();
|
||||
if(isset($cnn->lastQuery)){
|
||||
if (gettype($cnn->getResource()) == "resource" && $cnn->isConnected() && $cnn->lastQuery != $lastQuery) {
|
||||
$cnn->close();
|
||||
}
|
||||
$lastQuery = $cnn->lastQuery;
|
||||
}
|
||||
|
||||
$lastQuery = $cnn->lastQuery;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user