diff options
Diffstat (limited to 'app/helpers.php')
| -rw-r--r-- | app/helpers.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers.php b/app/helpers.php index 0953a56..7ac1fd6 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -58,3 +58,11 @@ function printScoreData($score_array) { return $return; } + +function getAiringStatusCode($airing_status) { + $status = DB::select("SELECT id FROM airing_status WHERE status = ?", array($airing_status)); + if ( empty($status) ) { + return 4; + } + return $status[0]->id; +} |
