Zeile 62 | Zeile 62 |
---|
$user = get_user_by_username($username, $options);
|
$user = get_user_by_username($username, $options);
|
if(!$user['uid'])
| if(!$user)
|
{ return false; }
| { return false; }
|
Zeile 327 | Zeile 327 |
---|
$query = $db->simple_select("threadsubscriptions", "*", "tid='".(int)$tid."' AND uid='".(int)$uid."'"); $subscription = $db->fetch_array($query);
|
$query = $db->simple_select("threadsubscriptions", "*", "tid='".(int)$tid."' AND uid='".(int)$uid."'"); $subscription = $db->fetch_array($query);
|
if(empty($subscription) || !$subscription['tid'])
| if(!$subscription)
|
{ $insert_array = array( 'uid' => (int)$uid,
| { $insert_array = array( 'uid' => (int)$uid,
|
Zeile 401 | Zeile 401 |
---|
$query = $db->simple_select("forumsubscriptions", "*", "fid='".$fid."' AND uid='{$uid}'", array('limit' => 1)); $fsubscription = $db->fetch_array($query);
|
$query = $db->simple_select("forumsubscriptions", "*", "fid='".$fid."' AND uid='{$uid}'", array('limit' => 1)); $fsubscription = $db->fetch_array($query);
|
if(empty($fsubscription) || !$fsubscription['fid'])
| if(!$fsubscription)
|
{ $insert_array = array( 'fid' => $fid,
| { $insert_array = array( 'fid' => $fid,
|