<?php
function smarty_function_get_moods($params,&$smarty) {
global $db;
-error_reporting(1);
$user_id = $params['user_id'];
$set = $db->query(sprintf('select moods from users where user_id = %d', $user_id));
$set->next();
$smarty->assign('get_moods_string',$moods_string);
$smarty->assign('get_moods_mood',$mood);
}
-?>
\ No newline at end of file
+?>