diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 018d41a79..4d7cc0805 100755 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -280,6 +280,9 @@ class XmlForm_Field $rs = $con->executeQuery( $query, ResultSet::FETCHMODE_NUM ); } catch (Exception $e) { //dismiss error because dbarray shouldnt be defined in some contexts. + $workspace = defined("SYS_SYS")? SYS_SYS : "Wokspace Undefined"; + G::log($workspace . " | ip: | " . G::getIpAddress() . " | type error: | " . $e->getMessage() . " | query: " . $query, PATH_DATA, "queriesWithErrors.log"); + return $result; } } else { @@ -289,6 +292,9 @@ class XmlForm_Field $rs = $stmt->executeQuery( $query, ResultSet::FETCHMODE_NUM ); } catch (Exception $e) { //dismiss error because dbarray shouldnt be defined in some contexts. + $workspace = defined("SYS_SYS")? SYS_SYS : "Wokspace Undefined"; + G::log($workspace . " | ip: | " . G::getIpAddress() . " | type error: | " . $e->getMessage() . " | query: " . $query, PATH_DATA, "queriesWithErrors.log"); + return $result; } } diff --git a/gulliver/thirdparty/creole/drivers/oracle/OCI8Connection.php b/gulliver/thirdparty/creole/drivers/oracle/OCI8Connection.php index f728e74f6..5a6a34ef9 100755 --- a/gulliver/thirdparty/creole/drivers/oracle/OCI8Connection.php +++ b/gulliver/thirdparty/creole/drivers/oracle/OCI8Connection.php @@ -153,7 +153,7 @@ class OCI8Connection extends ConnectionCommon implements Connection ); } - $success = oci_execute( $result, $this->execMode ); + $success = @oci_execute($result, $this->execMode); if ( ! $success ) {