plugins/admin/Home.php
changeset 916 05c341ea7545
parent 915 91f4da84966f
child 951 745cccc6b97d
equal deleted inserted replaced
915:91f4da84966f 916:05c341ea7545
   207   $edit_info = $db->fetchrow();
   207   $edit_info = $db->fetchrow();
   208   $install_date =& $edit_info['install_date'];
   208   $install_date =& $edit_info['install_date'];
   209   $db->free_result();
   209   $db->free_result();
   210   
   210   
   211   $days_installed = round( (time() / 86400) - ($install_date / 86400) );
   211   $days_installed = round( (time() / 86400) - ($install_date / 86400) );
       
   212   if ( $days_installed < 1 )
       
   213     $days_installed = 1;
   212   
   214   
   213   // Comments
   215   // Comments
   214   $q = $db->sql_query('SELECT COUNT(*) FROM ' . table_prefix . "comments");
   216   $q = $db->sql_query('SELECT COUNT(*) FROM ' . table_prefix . "comments");
   215   if ( !$q )
   217   if ( !$q )
   216     $db->_die();
   218     $db->_die();