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) {
|
foreach (self::$connectionMap as $cnn) {
|
||||||
if (get_class($cnn) != "DBArrayConnection") {
|
if (get_class($cnn) != "DBArrayConnection") {
|
||||||
if (gettype($cnn->getResource()) == "resource" && $cnn->isConnected() && $cnn->lastQuery != $lastQuery) {
|
if(isset($cnn->lastQuery)){
|
||||||
$cnn->close();
|
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