Project

General

Profile

« Previous | Next » 

Revision 1544

Added by Dietmar almost 13 years ago

fix droplet import after new wb installtion

View differences:

install.php
83 83
			$droplet = implode ( "\n", $cArray );
84 84
			$name = substr($dropfile,0,-4);
85 85
			$modified_when = time();
86
			$modified_by = (method_exists($admin, 'get_user_id') ? $admin->get_user_id() : 1);
86
			$modified_by = (method_exists($admin, 'get_user_id') && ($admin->get_user_id()!=null) ? $admin->get_user_id() : 1);
87 87
			$sql  = 'INSERT INTO `'.TABLE_PREFIX.'mod_droplets` SET ';
88 88
			$sql .= '`name` = \''.$name.'\', ';
89 89
			$sql .= '`code` = \''.$droplet.'\', ';

Also available in: Unified diff