Changeset 14622

Show
Ignore:
Timestamp:
01/24/08 15:48:42 (11 months ago)
Author:
bergie
Message:

Minor 1.9 fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/core/querybuilder.php

    r14613 r14622  
    126126     */ 
    127127    var $_qb; 
     128     
     129    /** 
     130     * The number of groups open 
     131     * 
     132     * @var int 
     133     * @access private 
     134     */ 
     135    var $_groups = 0; 
    128136 
    129137    /** 
     
    533541        //debug_pop(); 
    534542    } 
     543     
     544    function _check_groups() 
     545    { 
     546        while ($this->_groups > 0) 
     547        { 
     548            debug_push_class(__CLASS__, __FUNCTION__); 
     549            debug_add('Ending unterminated QB group', MIDCOM_LOG_INFO); 
     550            debug_pop(); 
     551            $this->end_group(); 
     552        } 
     553    } 
    535554 
    536555    function execute() 
    537556    { 
     557        $this->_check_groups(); 
     558         
    538559        return $this->execute_windowed(); 
    539560        //return $this->execute_notwindowed(); 
     
    633654    function execute_unchecked() 
    634655    { 
     656        $this->_check_groups(); 
     657         
    635658        $this->_reset(); 
    636659 
     
    782805    function begin_group($operator = 'OR') 
    783806    { 
     807        $this->_groups++; 
    784808        $this->_qb->begin_group($operator); 
    785809    } 
     
    790814    function end_group() 
    791815    { 
     816        $this->_groups--; 
    792817        $this->_qb->end_group(); 
    793818    } 
     
    857882    function count() 
    858883    { 
     884        $this->_check_groups(); 
     885         
    859886        if ($this->count == -1) 
    860887        { 
     
    879906    function count_unchecked() 
    880907    { 
     908        $this->_check_groups(); 
     909         
    881910        if ($this->_limit) 
    882911        { 
  • trunk/midcom/midcom.helper.reflector/reflector.php

    r14490 r14622  
    800800            $baseclass = $parent; 
    801801            $parent = get_parent_class($baseclass); 
     802             
     803            if (empty($parent)) 
     804            { 
     805                break; 
     806            } 
    802807        } 
    803808        while ($parent !== false); 
  • trunk/midcom/org.routamc.positioning/country.php

    r14084 r14622  
    1515class org_routamc_positioning_country_dba extends __org_routamc_positioning_country_dba 
    1616{ 
    17     function org_routamc_positioning_country_dba($id = null) 
     17    function __construct($id = null) 
    1818    { 
    19         return parent::__org_routamc_positioning_country_dba($id); 
     19        return parent::__construct($id); 
    2020    } 
    2121 
  • trunk/midcom/org.routamc.positioning/location.php

    r6154 r14622  
    1515class org_routamc_positioning_location_dba extends __org_routamc_positioning_location_dba 
    1616{ 
    17     function org_routamc_positioning_location_dba($id = null) 
     17    function __construct($id = null) 
    1818    { 
    19         return parent::__org_routamc_positioning_location_dba($id); 
     19        return parent::__construct($id); 
    2020    } 
    2121