Changes between Version 19 and Version 20 of XcacheApi


Ignore:
Timestamp:
2008-10-20T04:28:23+02:00 (7 years ago)
Author:
moo
Comment:

fixed #199 by Shnapoo

Legend:

Unmodified
Added
Removed
Modified
  • XcacheApi

    v19 v20  
    115115    public static function getInstance()
    116116    {
    117         return (self::$xcobj instanceof XCache) ? self::$xcobj : new XCache;
     117        if (!(self::$xcobj instanceof XCache)) {
     118            self::$xcobj = new XCache;
     119        }
     120        return self::$xcobj;
    118121    }
    119122