summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-01-27 12:11:31 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-27 12:11:31 +0100
commit308396b770f3b1b41ba31ff0ee889d485b14d14a (patch)
treef27a4eca63c05643620347a3b5c0269a74394fdc
parentea9331062353c45498c6b455690bb143c776830e (diff)
parenta067355a9886203f264ce94b0ecccd2fd4ba7351 (diff)
downloadnextcloud-server-308396b770f3b1b41ba31ff0ee889d485b14d14a.tar.gz
nextcloud-server-308396b770f3b1b41ba31ff0ee889d485b14d14a.zip
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…
-rw-r--r--lib/private/hintexception.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/hintexception.php b/lib/private/hintexception.php
index f673ac82ace..7c4754a92ef 100644
--- a/lib/private/hintexception.php
+++ b/lib/private/hintexception.php
@@ -38,6 +38,9 @@ class HintException extends \Exception {
}
public function getHint() {
+ if (empty($this->hint)) {
+ return $this->message;
+ }
return $this->hint;
}
}