Code Duplication    Length = 8-8 lines in 2 locations

phpgwapi/inc/adodb/drivers/adodb-oracle.inc.php 2 locations

@@ 96-103 (lines=8) @@
93
94
95
	/* there seems to be a bug in the oracle extension -- always returns ORA-00000 - no error */
96
	function ErrorMsg()
97
 	{
98
        if ($this->_errorMsg !== false) return $this->_errorMsg;
99
100
        if (is_resource($this->_curs)) $this->_errorMsg = @ora_error($this->_curs);
101
 		if (empty($this->_errorMsg)) $this->_errorMsg = @ora_error($this->_connectionID);
102
		return $this->_errorMsg;
103
	}
104
105
106
	function ErrorNo()
@@ 106-113 (lines=8) @@
103
	}
104
105
106
	function ErrorNo()
107
	{
108
		if ($this->_errorCode !== false) return $this->_errorCode;
109
110
		if (is_resource($this->_curs)) $this->_errorCode = @ora_errorcode($this->_curs);
111
		if (empty($this->_errorCode)) $this->_errorCode = @ora_errorcode($this->_connectionID);
112
        return $this->_errorCode;
113
	}
114
115
116