return $field;
}
-// Converts a userid so it can be used in SQL queries
+// Converts a zero or NULL to word 'NULL'
function makeZeroToNull ($number) {
// Is it a valid username?
if ((!is_null($number)) && ($number > 0)) {
return $number;
}
+// Converts NULL into number zero
+function makeNullToZero ($number) {
+ // Is this a NULL?
+ if ((is_null($number)) || (empty($number))) {
+ // Simply set it
+ $number = '0';
+ } // END - if
+
+ // Return it
+ return $number;
+}
+
// Capitalizes a string with underscores, e.g.: some_foo_string will become SomeFooString
// Note: This function is cached
function capitalizeUnderscoreString ($str) {
'ADMIN_EDIT_REFERAL_DEPTHS' => "Referal-Ebenen editieren / löschen / hinzufügen",
'ADMIN_ADD_NEW_REFERAL_DEPTH_TITLE' => "Neue Referal-Ebene hinzufügen",
'ADMIN_ADD_DEPTH' => "Referal-Ebene hinzufügen",
- 'ADMIN_ENTER_REFERAL_LEVEL' => "Referal-Ebene",
+ 'ADMIN_ENTER_REFERAL_LEVEL' => "Referal-Ebene eingeben",
'ADMIN_ENTER_REFERAL_PERCENTS' => "Prozentuale Vergütung",
'ADMIN_EDIT_DELETE_REFERAL_DEPTH_TITLE' => "Referal-Ebenen editieren / löschen",
'REFERAL_LEVEL' => "Referal-Ebene",
<tr>
- <td class="member_data">$content[level]. {--REFERAL_LEVEL--} ({%pipe,translateComma=$content[percents]%}%)</td>
+ <td class="member_data">{%pipe,makeNullToZero=$content[level]%}. {--REFERAL_LEVEL--} ({%pipe,translateComma=$content[percents]%}%)</td>
<td class="member_data">{%pipe,translateComma=$content[points]%} {?POINTS?}</td>
<td class="member_data">{%pipe,translateComma=$content[order_points]%} {?POINTS?}</td>
<td class="member_data" align="center">{%pipe,translateComma=$content[counter]%}</td>