PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Authentication » LiveUser » Bug #3246

wrong DB table names in code

Details

Submitted2005-01-19 17:04 UTC
Frommickey at louppen dot com
Assigneddufuz
StatusClosed
PackageLiveUser
PHP VersionIrrelevant
OSAll
Roadmaps(Not assigned)

Comments

[2005-01-19 17:04 UTC] mickey at louppen dot com

Description:
------------
hi there!
when you guys are referencing the table which holds the implied rights, sometimes you use "rights_implied" and sometime you use "right_implied"... which one is the right :) one ??

thanks for your time!

Reproduce code:
---------------
[greet@u15173035 webapp]$ grep -r rights_implied ~/mickey/lib/pear/lib/LiveUser/*
/home/greet/mickey/lib/pear/lib/LiveUser/Admin/Perm/Complex.php: $count = $this->_storage->selectOne('rights_implied', 'right_id', $filters, true);
/home/greet/mickey/lib/pear/lib/LiveUser/Admin/Perm/Complex.php: $result = $this->_storage->insert('rights_implied', $data);
/home/greet/mickey/lib/pear/lib/LiveUser/Admin/Perm/Complex.php: $this->_storage->delete('rights_implied', $filters);
/home/greet/mickey/lib/pear/lib/LiveUser/Admin/Perm/Complex.php: $this->_storage->delete('rights_implied', $filters);
/home/greet/mickey/lib/pear/lib/LiveUser/Admin/Perm/Simple.php: $selectable_tables = array('rights', 'userrights', 'grouprights', 'translations', 'areas', 'applications', 'rights_implied');
/home/greet/mickey/lib/pear/lib/LiveUser/Perm/Storage/SQL.php: 'rights_implied' => array(
/home/greet/mickey/lib/pear/lib/LiveUser/Perm/Storage/SQL.php: 'rights_implied' => array(

grep -r right_implied ~/mickey/lib/pear/lib/LiveUser/*
/home/greet/mickey/lib/pear/lib/LiveUser/Perm/Storage/DB.php: '.$this->prefix.'right_implied RI
/home/greet/mickey/lib/pear/lib/LiveUser/Perm/Storage/MDB.php: '.$this->prefix.'right_implied RI
/home/greet/mickey/lib/pear/lib/LiveUser/Perm/Storage/MDB2.php: '.$this->prefix.'right_implied RI