summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Cochrane <mikec@mikenz.geek.nz>2008-07-19 22:55:46 -0400
committerMike Cochrane <mikec@mikenz.geek.nz>2008-07-19 22:55:46 -0400
commit08dfd72bad9c4d245cf853e378353da568856724 (patch)
tree4e0273ae60ba1a8b985f7c41f3a01db8352bb000
parent32136f978a7bfad8c261b633edaa1cb24a4dc133 (diff)
A couple more notice errors
darcs-hash:20080720025546-533db-7044949bfaa6676c86f3e1d84d20ecb85aab0937.gz
-rw-r--r--actions/peoplesearch.php2
-rw-r--r--lib/util.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/actions/peoplesearch.php b/actions/peoplesearch.php
index f700cf46e..adacc0954 100644
--- a/actions/peoplesearch.php
+++ b/actions/peoplesearch.php
@@ -20,7 +20,7 @@
if (!defined('LACONICA')) { exit(1); }
require_once(INSTALLDIR.'/lib/searchaction.php');
-define(PROFILES_PER_PAGE, 10);
+define('PROFILES_PER_PAGE', 10);
class PeoplesearchAction extends SearchAction {
diff --git a/lib/util.php b/lib/util.php
index 40f2d4cd4..f2038808b 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -769,7 +769,7 @@ function common_fancy_url($action, $args=NULL) {
case 'userrss':
return common_path($args['nickname'].'/rss');
case 'showstream':
- if ($args && $args['page']) {
+ if ($args && isset($args['page'])) {
return common_path($args['nickname'].'?page=' . $args['page']);
} else {
return common_path($args['nickname']);