I spoke too soon, same as Mr Lizard. But it only appears after having made a new post, and if that new post has no
GAL
in it.
We temporarily overcame it by doing the following (rough and ready)| edit:
File:/geek/
gal
/includes/gal_class_core.php
Find on line 165
Code:
$text = preg_replace($this->find, $this->callback, " " . $text, $settings['limit']);
and add BEFORE it
Code:
//Insert dummy data at '0' to handle posts with no G A L data
$this->find['0'] = "//";
and then file: /geek/
gal
/includes/gal_class_vb_db.php
Find on line 114
Code:
foreach($posts as $key=>$value)
{
if (is_array($value))
{
foreach($value['gals'] as $galval)
{
$return['posts'][$key]['find'][$galval] =& $return['find'][$galval];
$return['posts'][$key]['content'][$galval] =& $return['content'][$galval];
$return['posts'][$key]['track'][$galval] =& $return['track'][$galval];
$return['posts'][$key]['link_template'][$galval]=& $return['link_template'][$galval];
$return['posts'][$key]['callback'][$galval] =& $return['callback'][$galval];
$return['posts'][$key]['content_template'][$galval]=& $return['content_template'][$galval];
}
}
$return['posts'][$key]['dateline'] = $value['dateline'];
}
and replace with
Code:
if($posts != null) // Added by Matt to work around errors with private messages
{
foreach($posts as $key=>$value)
{
if (is_array($value))
{
foreach($value['gals'] as $galval)
{
$return['posts'][$key]['find'][$galval] =& $return['find'][$galval];
$return['posts'][$key]['content'][$galval] =& $return['content'][$galval];
$return['posts'][$key]['track'][$galval] =& $return['track'][$galval];
$return['posts'][$key]['link_template'][$galval]=& $return['link_template'][$galval];
$return['posts'][$key]['callback'][$galval] =& $return['callback'][$galval];
$return['posts'][$key]['content_template'][$galval]=& $return['content_template'][$galval];
}
}
$return['posts'][$key]['dateline'] = $value['dateline'];
}
}
As I emphasize, this is quick and dirty, but seems to be holding temporarily.