
November 29th, 2012, 08:35 PM
|
|
Registered User
|
|
Join Date: Nov 2012
Location: Far-reaching Prince, MY
Posts: 1
Time spent in forums: 38 m 22 sec
Reputation Power: 0
|
|
|
Should I check if module is already loaded, or is it not necessary?
Hey all, I'm new.
I used to do this to check if certain modules are already loaded, just so to prevent overhead if it does:
PHP Code:
if(!isset($NM0['db']->modules['Extended']))
$NM0['db']->loadModule('Extended');
But the latest PEAR upgrade no longer allows me to do that; it'll give me error like "Cannot access protected property".
Is there a proper way to check for loaded modules, or is it not necessary?
|