From 5e8c9698d0cf187b50d4cf42c1d63974b6f7ab9a Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 30 Jun 2010 08:20:23 +0000 Subject: [PATCH] fixed a minor bug in subversionmodel --- codepot/src/codepot/models/subversionmodel.php | 5 ++++- codepot/src/codepot/views/project_catalog.php | 6 ++++-- codepot/src/codepot/views/project_delete.php | 2 +- codepot/src/codepot/views/site_catalog.php | 11 +++++------ codepot/src/codepot/views/site_delete.php | 4 ++-- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/codepot/src/codepot/models/subversionmodel.php b/codepot/src/codepot/models/subversionmodel.php index 85ae976c..76ee71b8 100644 --- a/codepot/src/codepot/models/subversionmodel.php +++ b/codepot/src/codepot/models/subversionmodel.php @@ -87,7 +87,10 @@ class SubversionModel extends Model $fileinfo['type'] = 'dir'; $fileinfo['size'] = 0; $fileinfo['created_rev'] = $info[0]['revision']; - $fileinfo['last_author'] = $info[0]['last_changed_author']; + if (array_key_exists ('last_changed_author', $info[0]) === FALSE) + $fileinfo['last_author'] = ''; + else + $fileinfo['last_author'] = $info[0]['last_changed_author']; $fileinfo['content'] = $list; $fileinfo['logmsg'] = (count($log) > 0)? $log[0]['msg']: ''; return $fileinfo; diff --git a/codepot/src/codepot/views/project_catalog.php b/codepot/src/codepot/views/project_catalog.php index 83d13464..a6e65f7d 100644 --- a/codepot/src/codepot/views/project_catalog.php +++ b/codepot/src/codepot/views/project_catalog.php @@ -11,7 +11,7 @@