libreplanet-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libreplanet-dev] Calendar extension error


From: Peter
Subject: [Libreplanet-dev] Calendar extension error
Date: Sat, 13 Jun 2009 06:51:20 +0000
User-agent: KMail/1.8.2

Hi,

The current event page returns an error, line 172 in Calendar/common.php

My suggestion is to insert between

$img = Image::newFromName( $name );
$path = str_replace("\\", "/", $_SERVER['DOCUMENT_ROOT']) . $img->getURL();

the following

$img = Image::newFromName( $name );
if ( !is_object( $img))
return null;
$path = str_replace("\\", "/", $_SERVER['DOCUMENT_ROOT']) . $img->getURL();

The is_object notes can be found at http://us3.php.net/is_object

If that works, we can submit a bug?

Regards,

Peter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]