Skip to content
Snippets Groups Projects
Commit 3fc667cf authored by chris's avatar chris
Browse files

fixes for stricter php5 typing (bug#978)

darcs-hash:20061113122645-9b6ab-e5f5be2e88eea7eb00643e6a5210086f46191c30.gz
parent 579b0f7e
No related branches found
No related tags found
No related merge requests found
......@@ -96,13 +96,15 @@ function idx_getPageWords($page){
if ($conf['deaccent']) {
$links = p_get_metadata($page,'relation references');
$tmp = join(' ',array_keys($links)); // make a single string
$tmp = strtr($tmp, ':', ' '); // replace namespace separator with a space
$link_tokens = array_unique(explode(' ', $tmp)); // break into tokens
foreach ($link_tokens as $link_token) {
if (isset($tokens[$link_token])) continue;
$tokens[$link_token] = 1;
if (!empty($links)) {
$tmp = join(' ',array_keys($links)); // make a single string
$tmp = strtr($tmp, ':', ' '); // replace namespace separator with a space
$link_tokens = array_unique(explode(' ', $tmp)); // break into tokens
foreach ($link_tokens as $link_token) {
if (isset($tokens[$link_token])) continue;
$tokens[$link_token] = 1;
}
}
}
......
......@@ -198,7 +198,7 @@ function metaUpdate(){
0,true);
$meta = array();
if(count($info)){
if(!empty($info)){
$meta['date']['created'] = $info[0][1];
foreach($info as $item){
if($item[4] != '*'){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment