Hi,
I was just trying to do the following in Install.pm for a plugin, to check if a table exists:
..but it seems $DB is coming up as undef . Is there a reason for this?
BTW, I know we can use $DB->prefix to get the prefix - but I was just wondering why it didn't exist here
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
I was just trying to do the following in Install.pm for a plugin, to check if a table exists:
Code:
if (-e "$CFG->{admin_root_path}/defs/".$DB->{connect}->{PREFIX} ."ReviewLinkSession.def") {..but it seems $DB is coming up as undef . Is there a reason for this?
BTW, I know we can use $DB->prefix to get the prefix - but I was just wondering why it didn't exist here
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!