Skip to content

Commit

Permalink
Fix empty string problem
Browse files Browse the repository at this point in the history
  • Loading branch information
yukuku committed Mar 31, 2014
1 parent eef2638 commit ef2ad2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/fuel/app/classes/util.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public static function notifyUsers($dapilId, $caleg, $inputs) {
//Prepare message payload
$data = array(
'kind' => 'new_caleg_rating',
'content' => substr($inputs['content'] or '', 0, 500),
'title' => substr($inputs['title'] or '', 0, 500),
'content' => substr($inputs['content']? $inputs['content']: '', 0, 500),
'title' => substr($inputs['title']? $inputs['title']: '', 0, 500),
'rating' => $inputs['rating'],
'lembaga' => $caleg->lembaga,
'caleg_name' => $caleg->nama,
Expand Down

0 comments on commit ef2ad2e

Please sign in to comment.