2008-07-17 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandora_console/general/logon_ok.php: Fixed bug, the latest update failed in the middle (SourceForge SVN problems) and didn't include this file. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@963 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d97b4be836
commit
590aa8a794
|
@ -172,9 +172,12 @@ $table->head[2] = lang_string ('date');
|
||||||
$table->head[3] = lang_string ('src_address');
|
$table->head[3] = lang_string ('src_address');
|
||||||
$table->head[4] = lang_string ('comments');
|
$table->head[4] = lang_string ('comments');
|
||||||
|
|
||||||
$sql = sprintf ('SELECT ID_usuario,accion,fecha,IP_origen,descripcion FROM tsesion WHERE (utimestamp > UNIX_TIMESTAMP(NOW()) - 604800)
|
$sql = sprintf ("SELECT ID_usuario,accion,fecha,IP_origen,descripcion FROM `tsesion` WHERE (`utimestamp` > UNIX_TIMESTAMP(NOW()) - 604800)
|
||||||
AND ID_usuario = "%s" ORDER BY fecha DESC LIMIT 5', $nick);
|
AND `ID_usuario` = '%s' ORDER BY `fecha` DESC LIMIT 5", $nick);
|
||||||
$sessions = get_db_all_rows_sql ($sql);
|
$sessions = get_db_all_rows_sql ($sql);
|
||||||
|
if($sessions === false)
|
||||||
|
$sessions = array();
|
||||||
|
|
||||||
foreach ($sessions as $session) {
|
foreach ($sessions as $session) {
|
||||||
$data = array ();
|
$data = array ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue