test theo

This commit is contained in:
Liesbeth ter Schure
2024-08-25 16:26:38 +02:00
parent 43f3a489e2
commit b600917bd3
2 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ class MY_Model extends CI_Model{
if ( $fieldname ) $this->db->select( $fieldname );
$query = $this->db->get( $this->tablename . ' AS T1' );
if ( $query->num_rows() == 0 ) return FALSE;
if ( ! $query || $query->num_rows() == 0 ) return FALSE;
if ( $row ){
$row = $query->row();