plugin check returning 0 vs false
This commit is contained in:
@@ -506,7 +506,7 @@ function admin_page_plugins(&$a){
|
||||
if (x($_GET,"a") && $_GET['a']=="t"){
|
||||
// Toggle plugin status
|
||||
$idx = array_search($plugin, $a->plugins);
|
||||
if ($idx){
|
||||
if ($idx !== false){
|
||||
unset($a->plugins[$idx]);
|
||||
uninstall_plugin($plugin);
|
||||
info( sprintf( t("Plugin %s disabled."), $plugin ) );
|
||||
|
||||
@@ -458,7 +458,7 @@ function profiles_content(&$a) {
|
||||
|
||||
$tpl_header = get_markup_template('profile_listing_header.tpl');
|
||||
$o .= replace_macros($tpl_header,array(
|
||||
'$header' => t('Profiles'),
|
||||
'$header' => t('Edit/Manage Profiles'),
|
||||
'$chg_photo' => t('Change profile photo'),
|
||||
'$cr_new' => t('Create New Profile')
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user