> $realwidth = strpos($attrs,'width=') ? '' : " width='$realwidth'";
> $realheight = substr($attrs,'height=') ? '' : " height='$realheight'";

I forgot strpos logically returns a zero position when the "needle" is
found at the start of the "haystack".

This is the right version:

$realwidth = strpos($attrs,'width=') === false ? "
width='$realwidth'" : '';
$realheight = substr($attrs,'height=') === false ? "
height='$realheight'" : '';

Cheers,
Marcos

--
http://alinome.net

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to