]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
A couple more notice errors
authorMike Cochrane <mikec@mikenz.geek.nz>
Sun, 20 Jul 2008 02:55:46 +0000 (22:55 -0400)
committerMike Cochrane <mikec@mikenz.geek.nz>
Sun, 20 Jul 2008 02:55:46 +0000 (22:55 -0400)
darcs-hash:20080720025546-533db-7044949bfaa6676c86f3e1d84d20ecb85aab0937.gz

actions/peoplesearch.php
lib/util.php

index f700cf46e70105cd5c8c1e46413533eba2fe98cd..adacc095440c8f0e2d23c255350ecf14de21604b 100644 (file)
@@ -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 {
 
index 40f2d4cd4de016aa1728a40dd6da4a9eef73c128..f2038808b3fbbdcc966c9dacd8576505ff2fc1bd 100644 (file)
@@ -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']);