Changeset 4424

Show
Ignore:
Timestamp:
12/21/12 09:19:48 (1 month ago)
Author:
demian
Message:

updates for php 5.4, fixes #1765

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/VERSION.txt

    r4355 r4424  
    1 1.0 
     11.0.1 
  • trunk/lib/SGL/DB.php

    r4374 r4424  
    6969        $msg = 'Cannot connect to DB, check your credentials'; 
    7070        $dsn = (is_null($dsn)) ? SGL_DB::getDsn(SGL_DSN_STRING) : $dsn; 
    71         if (empty($dsn['phptype'])) { 
     71        if (is_array($dsn) && empty($dsn['phptype'])) { 
    7272            return PEAR::raiseError($msg, SGL_ERROR_DBFAILURE); 
    7373        }