diff options
author | Igor <pashev.igor@gmail.com> | 2010-11-06 19:05:05 +0300 |
---|---|---|
committer | Igor <pashev.igor@gmail.com> | 2010-11-06 19:05:05 +0300 |
commit | f453cf1b82cd4a4d56fc7a2ef0c41c5237415015 (patch) | |
tree | 93a696edd844aabb17d88c53ee990e14ba617f87 | |
parent | 33b066a6e67b223ed4138e7d779d445f8078193b (diff) | |
download | dokuwiki-plugin-papers-f453cf1b82cd4a4d56fc7a2ef0c41c5237415015.tar.gz |
Fixed: dublicate again and again
-rw-r--r-- | bibtex.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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++) { |