diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-07 18:57:23 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-07 18:57:23 -0400 |
commit | dea84256ab39c1d6cd8338c2c8f6247bc817e9f6 (patch) | |
tree | f2541845a9db25630d14f7d896892b910f314122 /ajax/createfeed.php | |
parent | 4be12df25c8b0890db84bcac687aa00b16e3108c (diff) |
no need of checking the statuscode in ajaxError when adding feed
Diffstat (limited to 'ajax/createfeed.php')
-rw-r--r-- | ajax/createfeed.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ajax/createfeed.php b/ajax/createfeed.php index db02a1723..884958b08 100644 --- a/ajax/createfeed.php +++ b/ajax/createfeed.php @@ -46,8 +46,7 @@ if ($feedid == null) { if ($feed != null) { $feedid = $feedmapper->save($feed, $folderid); } -} -else { +} else { OCP\JSON::error(array('data' => array('message' => $l->t('Feed already exists.')))); OCP\Util::writeLog('news','ajax/createfeed.php: Error adding feed: '.$_POST['feedurl'], OCP\Util::ERROR); exit(); |