Project

General

Profile

« Previous | Next » 

Revision 2131

Added by darkviper almost 9 years ago

  1. msgQueue fixed index error
    ! WbDatabase added compatibility layer to ::fetchAll() to prevent from incomplete compiled PHP

View differences:

WbDatabase.php
478 478
    public function fetchAll($iType = MYSQLI_ASSOC)
479 479
    {
480 480
        $iType = $iType != MYSQLI_NUM ? MYSQLI_ASSOC : MYSQLI_NUM;
481
        return mysqli_fetch_all($this->result, $iType);
481

  
482
        if (function_exists('mysqli_fetch_array')) { # Compatibility layer with PHP < 5.3
483
            $aRetval = mysqli_fetch_all($this->result, $iType);
484
        } else {
485
            for ($aRetval = array(); ($aTmp = mysqli_fetch_array($this->result, $iType));) { $aRetval[] = $aTmp; }
486
        }
487
        return $aRetval;
488
//        return mysqli_fetch_all($this->result, $iType);
482 489
    }
483 490
/**
484 491
 * rewind

Also available in: Unified diff