Some more notice errors - I guess I'm the only one developing with E_ALL

darcs-hash:20080720033236-533db-95f6a169f73e69549a8ff0eefb0e4c8ba21f090e.gz
This commit is contained in:
Mike Cochrane 2008-07-19 23:32:36 -04:00
parent 08dfd72bad
commit a1515e5411
2 changed files with 3 additions and 2 deletions

View File

@ -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?

View File

@ -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];
}