}
if (! $project->enableAnonSCM()) {
- unlink ($tarball) ;
+ if (file_exists ($tarball)) unlink ($tarball) ;
return false;
}
$repo = $this->getRootRepositories($project);
if (!is_dir ($repo)) {
- unlink ($tarball) ;
+ if (file_exists ($tarball)) unlink ($tarball) ;
return false ;
}
}
else
{
- echo "$repo\n";
+ // echo "$repo\n";
}
$pipe = popen("darcs changes --repodir='$repo' "
$day,
$project->getID(),
$user_id,
- $usr_updates[$user] ? $usr_updates[$user] : 0,
- $usr_adds[$user] ? $usr_adds[$user] : 0))) {
+ isset ($usr_updates[$user]) ? $usr_updates[$user] : 0,
+ isset ($usr_adds[$user]) ? $usr_adds[$user] : 0))) {
echo "Error while inserting into stats_cvs_user\n" ;
db_rollback () ;
return false ;