X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fdrush%2Fdrush%2Fcommands%2Fcore%2Foutputformat%2Fstring.inc;fp=vendor%2Fdrush%2Fdrush%2Fcommands%2Fcore%2Foutputformat%2Fstring.inc;h=a86e7d172bab9718075dfca2cd80e24fdeb0bc44;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/vendor/drush/drush/commands/core/outputformat/string.inc b/vendor/drush/drush/commands/core/outputformat/string.inc new file mode 100644 index 000000000..a86e7d172 --- /dev/null +++ b/vendor/drush/drush/commands/core/outputformat/string.inc @@ -0,0 +1,37 @@ + 1) { + return $this->format_error("Multiple rows provided where only one is allowed."); + } + if (!empty($data)) { + $data = reset($data); + } + if (is_array($data)) { + return $this->format_error("Array provided where a string is required."); + } + } + return (string)$data; + } +}