summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorMike Cochrane <mikec@mikenz.geek.nz>2008-07-19 23:32:36 -0400
committerMike Cochrane <mikec@mikenz.geek.nz>2008-07-19 23:32:36 -0400
commita1515e5411eaed5e21bf56536438bc906d197d35 (patch)
tree8f94d60c94239fceea42c168305fa6555c738de9 /lib/util.php
parent08dfd72bad9c4d245cf853e378353da568856724 (diff)
Some more notice errors - I guess I'm the only one developing with E_ALL
darcs-hash:20080720033236-533db-95f6a169f73e69549a8ff0eefb0e4c8ba21f090e.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php3
1 files changed, 2 insertions, 1 deletions
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];
}