<?php
/***************************************************************************
- * Copyright (C) 2003-2013 Polytechnique.org *
+ * Copyright (C) 2003-2014 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
}
$textLines = explode("\n", $text);
$countLines = count($textLines);
+ if ($countLines < 2) {
+ return $text;
+ }
$needle = strtoupper(trim($textLines[$countLines - 2]));
$isPseudoCountry = false;
if ($needle) {
}
}
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
?>