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

Bug #5791 extended->getBeforeID() and ->getAfterID() don't allow $field to be empty
Submitted: 2005-10-27 10:31 UTC
From: tschlottke at virtualminds dot de Assigned: lsmith
Status: Closed Package: MDB2
PHP Version: Irrelevant OS: irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2005-10-27 10:31 UTC] tschlottke at virtualminds dot de
Description: ------------ Earlier versions of MDB2 (in which the two methods where not in the extended module), it was possible to leave $field blank, which is, looking at the code a possible/wanted thing. ... "$seq = $table.(empty($field) ? '' : '_'.$field);" ... Please change the Methods to function getBeforeID($table, $field='', $ondemand = true) and function getAfterID($id, $table, $field='') because php throws warnings otherwise. Actual result: -------------- PHP Warning: Missing argument 2 for MDB2_Extended::getBeforeID() in /usr/share/php/MDB2/Extended.php on line 562

Comments

 [2005-10-27 16:28 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!