Changeset 1259

Show
Ignore:
Timestamp:
07/04/08 10:14:21 (3 months ago)
Author:
kilburn
Message:

* GUI: Fixed #1383 - DatabaseResult?->EOF returns false on select queries which return 0 rows.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r1257 r1259  
    11ispCP ω 1.0.0 Changelog 
    22~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     3 
     42008-07-04 Marc Pujol 
     5        - GUI: 
     6                * Fixed #1383: DatabaseResult->EOF returns false on select queries which return 0 rows. 
    37 
    482008-07-02 Benedikt Heintel 
  • trunk/gui/include/class.database.php

    r1241 r1259  
    109109                } 
    110110                if ($param == 'EOF') { 
     111                        if ($this->_result->rowCount() == 0) { 
     112                                return true; 
     113                        } 
    111114                        return !is_null($this->_fields) && !is_array($this->_fields); 
    112115                }