Home » Internationalization » Translation2 » Bug #2890
getLang() notices if setLang() is not falled before
Details
| Submitted | 2004-12-04 20:04 UTC |
|---|---|
| From | tobias dot eberle at gmx dot de |
| Assigned | quipo |
| Status | Closed |
| Package | Translation2 |
| PHP Version | 4.3.9 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-12-04 20:04 UTC] tobias dot eberle at gmx dot de
Description:
------------
If I call Translation2::getLang(id) without calling Translation2::setLang(id) before, I get a notice:
Notice: Undefined index: id in /usr/share/php/Translation2.php on line 274
Reproduce code:
---------------
$cTranslation2 = Translation2::factory(...);
//we dont call setLang() here
$cTranslation2->getLang(id)
Expected result:
----------------
no notice
Actual result:
--------------
Notice: Undefined index: id in /usr/share/php/Translation2.php on line 274