Ticket #14207: 14207.2.patch
| File 14207.2.patch, 891 bytes (added by , 14 years ago) |
|---|
-
wp-includes/pomo/mo.php
154 154 155 155 // read originals' indices 156 156 $originals_lengths_length = $translations_lenghts_addr - $originals_lenghts_addr; 157 if ( $originals_lengths_length != $total * 8 )157 if ( !$originals_lengths_length || $originals_lengths_length != $total * 8 ) 158 158 return false; 159 159 160 160 $originals = $reader->read($originals_lengths_length); … … 163 163 164 164 // read translations' indices 165 165 $translations_lenghts_length = $hash_addr - $translations_lenghts_addr; 166 if ( $translations_lenghts_length != $total * 8 )166 if ( !$translations_lenghts_length || $translations_lenghts_length != $total * 8 ) 167 167 return false; 168 168 169 169 $translations = $reader->read($translations_lenghts_length);