mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fix lookups for empty contest sessions
This commit is contained in:
@@ -188,7 +188,7 @@ class Contesting extends CI_Controller {
|
||||
$result = $this->Contesting_model->checkIfWorkedBefore($call, $band, $mode, $contest);
|
||||
|
||||
header('Content-Type: application/json');
|
||||
if ($result->num_rows()) {
|
||||
if ($result && $result->num_rows()) {
|
||||
echo json_encode(array('message' => 'Worked before'));
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user