summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/noticesearch.php2
-rw-r--r--lib/util.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/actions/noticesearch.php b/actions/noticesearch.php
index 29de0ad7c..eb3382779 100644
--- a/actions/noticesearch.php
+++ b/actions/noticesearch.php
@@ -20,7 +20,7 @@
if (!defined('LACONICA')) { exit(1); }
require_once(INSTALLDIR.'/lib/searchaction.php');
-define(NOTICES_PER_PAGE, 20);
+define('NOTICES_PER_PAGE', 20);
# XXX common parent for people and content search?
diff --git a/lib/util.php b/lib/util.php
index f2038808b..74d5971f7 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -708,7 +708,7 @@ function common_local_url($action, $args=NULL) {
function common_fancy_url($action, $args=NULL) {
switch (strtolower($action)) {
case 'public':
- if ($args && $args['page']) {
+ if ($args && isset($args['page'])) {
return common_path('?page=' . $args['page']);
} else {
return common_path('');
@@ -889,6 +889,7 @@ function common_redirect($url, $code=307) {
function common_save_replies($notice) {
# Alternative reply format
+ $tname = false;
if (preg_match('/^T ([A-Z0-9]{1,64}) /', $notice->content, $match)) {
$tname = $match[1];
}