Here is the code itself
if($status[0]['status'] == 'close'){ $access = "SELECT * FROM accesses WHERE id_login=$id_login AND access='teacher'"; $access = mysqli_query($db, $access);// == true? true : false; $access = mysqli_num_rows($access) == 1? true : false; if($access && !$death) return true; else return false; } else return true; } When you go to the site, this is the error
Notice: Undefined offset: 0