phpBB

Code Changes

File: memberlist.php

  Unmodified   Added   Modified   Removed
Line 653Line 653
			FROM ' . ZEBRA_TABLE . "
WHERE zebra_id = $user_id
AND user_id = {$user->data['user_id']}";

			FROM ' . ZEBRA_TABLE . "
WHERE zebra_id = $user_id
AND user_id = {$user->data['user_id']}";



 
		$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);

		$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);

		$foe = ($row['foe']) ? true : false;
$friend = ($row['friend']) ? true : false;




$foe = $row ? (bool) $row['foe'] : false;
$friend = $row ? (bool) $row['friend'] : false;


		$db->sql_freeresult($result);

if ($config['load_onlinetrack'])

		$db->sql_freeresult($result);

if ($config['load_onlinetrack'])

Line 670Line 671
			$db->sql_freeresult($result);

$member['session_time'] = (isset($row['session_time'])) ? $row['session_time'] : 0;

			$db->sql_freeresult($result);

$member['session_time'] = (isset($row['session_time'])) ? $row['session_time'] : 0;

			$member['session_viewonline'] = (isset($row['session_viewonline'])) ? $row['session_viewonline'] :	0;

			$member['session_viewonline'] = (isset($row['session_viewonline'])) ? $row['session_viewonline'] : 0;

			unset($row);
}


			unset($row);
}