PM-2811: Upgrade ProcessMaker from 2.8 to 3.0 on Ubuntu, problem with close in propel

This commit is contained in:
Paula V. Quispe
2015-05-25 12:13:46 -04:00
parent 42049d82e5
commit 3e1e7d3172

View File

@@ -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;
}
}
}