Author: cyb
Date: Fri Apr 27 14:07:18 2007
New Revision: 383

URL: http://svn.gna.org/viewcvs/phplinker?rev=383&view=rev
Log:
#200: make sure that variables are defined before using them

Modified:
    trunk/www/admin/log.php

Modified: trunk/www/admin/log.php
URL: 
http://svn.gna.org/viewcvs/phplinker/trunk/www/admin/log.php?rev=383&r1=382&r2=383&view=diff
==============================================================================
--- trunk/www/admin/log.php (original)
+++ trunk/www/admin/log.php Fri Apr 27 14:07:18 2007
@@ -67,13 +67,20 @@
      if ($t >= $debut && $t < ($debut+$pPage) && $Counter < $pPage) {
        $Date = mysql_result ($qry, $Counter, "date");
        $Log = linker_parse_log(mysql_result ($qry, $Counter, "log"));
-       $log_replaced = linker_parser_log($Log['description']);
+
+       $log_replaced='';
+       if(isset($Log['description']))
+        $log_replaced = linker_parser_log($Log['description']);
 
        if($Counter%2==0){
         $tr = "<tr class=\"row_odd\">";
        }else{
         $tr = "<tr class=\"row_even\">";
        }
+
+       if(!isset($Log['user']))
+        $Log['user']='unknown';
+
        $myData[] = "$tr
                     <td align ='left'>$Date</td>
                     <td align 
='left'><b>".$Log['user']."</b>&nbsp;".$log_replaced."</td>


_______________________________________________
PHPLinker-commits mailing list
[email protected]
https://mail.gna.org/listinfo/phplinker-commits

Reply via email to