Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, November 13, 2026

Diff for Metafox/functions.inc.php between version 1.139 and 1.140

version 1.139, 2016/07/11 13:28:12 version 1.140, 2017/06/09 15:12:59
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/functions.inc.php,v 1.138 2016/03/08 13:56:50 igor Exp $ */  /* $Platon: Metafox/functions.inc.php,v 1.139 2016/07/11 13:28:12 igor Exp $ */
   
 function ezin_eval($evalcode) /* {{{ */  function ezin_eval($evalcode) /* {{{ */
 {  {
Line 2646  function ezin_admin_db_check_run() {
Line 2646  function ezin_admin_db_check_run() {
         }          }
         $ret = array();          $ret = array();
         foreach ($_ezin_admin['db_check'] as $check) {          foreach ($_ezin_admin['db_check'] as $check) {
                 $result = @mysql_query($check['test'], $ezin_db_handle)                  $result = mysqli_query($ezin_db_handle, $check['test'])
                         or ezin_db_error('ezin_admin_db_check_run() [1]');                          or ezin_db_error('ezin_admin_db_check_run() [1]');
                 $row = mysql_fetch_array($result, MYSQL_NUM);                  $row = mysqli_fetch_array($result, MYSQLI_NUM);
                 @mysql_free_result($result);                  mysqli_free_result($result);
                 if ($row === false                  if ($row == null
                         || (is_array($row)                          || (is_array($row)
                                 && $row[0] != $check['test_output']))                                  && $row[0] != $check['test_output']))
                 {                  {
                         @mysql_query($check['fix'], $ezin_db_handle)                          mysqli_query($ezin_db_handle, $check['fix'])
                                 or ezin_db_error('ezin_admin_db_check_run() [2]');                                  or ezin_db_error('ezin_admin_db_check_run() [2]');
                         // TEST again                          // TEST again
                         $result = @mysql_query($check['test'], $ezin_db_handle)                          $result = mysqli_query($ezin_db_handle, $check['test'])
                                 or ezin_db_error('ezin_admin_db_check_run() [1]');                                  or ezin_db_error('ezin_admin_db_check_run() [1]');
                         $row = mysql_fetch_array($result, MYSQL_NUM);                          $row = mysqli_fetch_array($result, MYSQLI_NUM);
                         @mysql_free_result($result);                          mysqli_free_result($result);
                         if ($row === false                          if ($row == null
                                 || (is_array($row)                                  || (is_array($row)
                                         && $row[0] != $check['test_output']))                                          && $row[0] != $check['test_output']))
                         {                          {

Legend:
Removed from v.1.139  
changed lines
  Added in v.1.140

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top