aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor <pashev.igor@gmail.com>2010-11-06 19:05:05 +0300
committerIgor <pashev.igor@gmail.com>2010-11-06 19:05:05 +0300
commitf453cf1b82cd4a4d56fc7a2ef0c41c5237415015 (patch)
tree93a696edd844aabb17d88c53ee990e14ba617f87
parent33b066a6e67b223ed4138e7d779d445f8078193b (diff)
downloaddokuwiki-plugin-papers-f453cf1b82cd4a4d56fc7a2ef0c41c5237415015.tar.gz
Fixed: dublicate again and again
-rw-r--r--bibtex.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/bibtex.php b/bibtex.php
index a6aa8ac..13796e9 100644
--- a/bibtex.php
+++ b/bibtex.php
@@ -64,7 +64,6 @@ class BibtexParser
* $ENTRIES['pashev_2010_axiom']['year'] = 2010
* $ENTRIES['pashev_2010_axiom']['numpages'] = 68
* and so on...
- *
*/
}
}
@@ -108,10 +107,11 @@ class BibtexParser
public function expand_years()
{
- $entries = array(); // \/ - no ref!
+ $entries = array(); // \/ - not a ref!
foreach ($this->ENTRIES as $e)
{
- if (!empty($e['years']) && preg_match('/(\d{4})\D+?(\d{4})/', $e['years'], $m))
+ if (empty($e['year']) && !empty($e['years'])
+ && preg_match('/(\d{4})\D+?(\d{4})/', $e['years'], $m))
{
for ($y = $m[1]; $y <= $m[2]; $y++)
{