Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.0

Bug #5706 wrong return type in /LiveUser/Admin/Storage/SQL.php
Submitted: 2005-10-17 15:04 UTC
From: alpa at aikenweb dot com Assigned: lsmith
Status: Closed Package: LiveUser_Admin
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    

 [2005-10-17 15:04 UTC] alpa at aikenweb dot com
Description: ------------ LiveUser_Admin v0.3.5 /LiveUser/Admin/Storage/SQL.php method _checkExplicitTable (on line 522) return string while in method findTables (on line 546->552) expect array. posible fix: replace return $match[1]; with return $match;


 [2005-10-17 15:16 UTC] lsmith
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.
 [2005-10-17 16:16 UTC] alpa at aikenweb dot com
Script still not work properly (cvs 1.40). When doing: $this->_checkExplicitTable($field, $selectable_tables); on lines 546, 560, 574 variable $match is string. This expect error when exucuting: $this->prefix.$this->alias[$match[1]].'.'.$match[2].' AS '.$match[2]; because $match[1] and $match[2] are elements of string $match
 [2005-10-17 19:22 UTC] lsmith
Doh! .. yes you are right of course .. I now went with your suggested fix.