Camen Design Forum

Uninitialized string offset

toby12

hello I am getting a php error in PHP7 was wondering if anyone could help with this one.

PHP Notice: Uninitialized string offset: 0 in /home/user/tor/public_html/lib/functions.php on line 66

Line 66:

%

foreach ($template->query ('//*/@href, //*/@src, //*/@content') as $node) if ($node->nodeValue[0] == '/')

%

Append

(Leave this as-is, it’s a trap!)

Only the original author or a moderator can append to this post.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn