summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-05-10 13:16:40 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-05-10 13:16:40 +0000
commitb4e7b04a4742fd60fe26d32664373ceeed46b01a (patch)
tree3d1b7d2999e29e0c5f758f37b52a326db259aea2
parent06cbba3a765a8052a116336df0baff43bc55494c (diff)
downloadapk_browser-b4e7b04a4742fd60fe26d32664373ceeed46b01a.tar.bz2
apk_browser-b4e7b04a4742fd60fe26d32664373ceeed46b01a.tar.xz
fix typo and add isset to vars
-rw-r--r--apk_browser.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/apk_browser.module b/apk_browser.module
index 39b4e49..522ae77 100644
--- a/apk_browser.module
+++ b/apk_browser.module
@@ -685,12 +685,12 @@ function apk_browser_block_view($delta = '') {
case 'apk_browser_reverse_depends':
$revdep = apk_browser_reverse_depends();
if ($revdep) {
- $block['subject'] = t('Reverse dependecies');
+ $block['subject'] = t('Reverse dependencies');
$block['content'] = $revdep;
}
}
// If one of the functions above returns true, we add collapse script
- if (($origin) || ($revdep)) {
+ if ((isset($origin)) || (isset($revdep))) {
drupal_add_js($js, 'inline');
}
return ($block['content']) ? $block : FALSE;