includes/sessions.php
changeset 460 3a1c99845ca8
parent 458 c433348f3628
child 466 1cc8a038ad20
equal deleted inserted replaced
459:31c23016ab62 460:3a1c99845ca8
  2862     }
  2862     }
  2863     
  2863     
  2864     $q = $this->sql('SELECT code_id, code FROM ' . table_prefix . "captcha WHERE session_id = '$hash' AND source_ip = '{$_SERVER['REMOTE_ADDR']}';");
  2864     $q = $this->sql('SELECT code_id, code FROM ' . table_prefix . "captcha WHERE session_id = '$hash' AND source_ip = '{$_SERVER['REMOTE_ADDR']}';");
  2865     if ( $db->numrows() < 1 )
  2865     if ( $db->numrows() < 1 )
  2866     {
  2866     {
  2867       die("session manager: no rows for captcha_code $hash");
       
  2868       return false;
  2867       return false;
  2869     }
  2868     }
  2870     
  2869     
  2871     list($code_id, $code) = $db->fetchrow_num();
  2870     list($code_id, $code) = $db->fetchrow_num();
  2872     
  2871