Skip to content

Commit d1f8ebb

Browse files
authored
why limit is_assoc() to MY_Model?
...
1 parent 4899408 commit d1f8ebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/MY_Model.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ private function _set_relationships()
13651365
}
13661366
else
13671367
{
1368-
if($this->_is_assoc($relation))
1368+
if($this->is_assoc($relation))
13691369
{
13701370
$foreign_model = $relation['foreign_model'];
13711371
if(array_key_exists('foreign_table',$relation))
@@ -1952,7 +1952,7 @@ public function object_to_array( $object )
19521952
* @param array $array
19531953
* @return bool
19541954
*/
1955-
private function _is_assoc(array $array) {
1955+
protected function is_assoc(array $array) {
19561956
return (bool)count(array_filter(array_keys($array), 'is_string'));
19571957
}
19581958

0 commit comments

Comments
 (0)