Some Bugfixes, and variable checks

This commit is contained in:
Tobias Hößl 2012-04-17 11:33:50 +00:00
commit 720c8324c7
9 changed files with 44 additions and 43 deletions

View file

@ -170,7 +170,7 @@ function photo_init(&$a) {
}
// Writing in cachefile
if ($cachefile != '')
if (isset($cachefile) && $cachefile != '')
file_put_contents($cachefile, $data);
if(function_exists('header_remove')) {

View file

@ -330,7 +330,6 @@ function photos_post(&$a) {
// Create item container
$title = '';
$basename = basename($filename);
$uri = item_new_uri($a->get_hostname(),$page_owner_uid);
$arr = array();