Merge pull request #21942 from owncloud/use-message-if-hint-is-empty

In case the hint of the HintException is empty we better use the exce…
This commit is contained in:
Thomas Müller 2016-01-27 12:11:31 +01:00
commit 308396b770
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ class HintException extends \Exception {
}
public function getHint() {
if (empty($this->hint)) {
return $this->message;
}
return $this->hint;
}
}