Fix adobe issue

This commit is contained in:
gamonoid
2017-09-24 20:13:11 +02:00
parent 7424471a60
commit 5b1b087f01
4 changed files with 73806 additions and 9 deletions

View File

@@ -128,9 +128,10 @@ class ADODB_Active_Record {
$db = $pkeyarr;
$pkeyarr = false;
}
if (!$table) {
if (!empty($this->_table)) $table = $this->_table;
if (!$table) {
if (!empty($this->table)) $table = $this->table;
else if (!empty($this->_table)) $table = $this->_table;
else $table = $this->_pluralize(get_class($this));
}
$this->foreignName = strtolower(get_class($this)); // CFR: default foreign name
@@ -1058,4 +1059,4 @@ function adodb_GetActiveRecordsClass2(&$db, $class, $table, $qry, $bindarr, $pri
return $arr;
}
?>
?>