mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-23 18:01:36 +01:00
Fix warning
This commit is contained in:
@@ -1865,7 +1865,7 @@ if ($id > 0) {
|
|||||||
|
|
||||||
// Location
|
// Location
|
||||||
if (empty($conf->global->AGENDA_DISABLE_LOCATION)) {
|
if (empty($conf->global->AGENDA_DISABLE_LOCATION)) {
|
||||||
print '<tr><td>'.$langs->trans("Location").'</td><td colspan="3"><input type="text" name="location" class="width500" value="'.$object->location.'"></td></tr>';
|
print '<tr><td>'.$langs->trans("Location").'</td><td colspan="3"><input type="text" name="location" class="minwidth300 maxwidth150onsmartphone" value="'.$object->location.'"></td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status
|
// Status
|
||||||
@@ -1997,7 +1997,7 @@ if ($id > 0) {
|
|||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
// Reminders
|
// Reminders
|
||||||
if ($conf->global->AGENDA_REMINDER_EMAIL || $conf->global->AGENDA_REMINDER_BROWSER) {
|
if (getDolGlobalString('AGENDA_REMINDER_EMAIL') || getDolGlobalString('AGENDA_REMINDER_BROWSER')) {
|
||||||
$filteruserid = $user->id;
|
$filteruserid = $user->id;
|
||||||
if ($user->rights->agenda->allactions->read) {
|
if ($user->rights->agenda->allactions->read) {
|
||||||
$filteruserid = 0;
|
$filteruserid = 0;
|
||||||
|
|||||||
@@ -3828,6 +3828,10 @@ function isValidPhone($phone)
|
|||||||
*/
|
*/
|
||||||
function dol_strlen($string, $stringencoding = 'UTF-8')
|
function dol_strlen($string, $stringencoding = 'UTF-8')
|
||||||
{
|
{
|
||||||
|
if (is_null($string)) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (function_exists('mb_strlen')) {
|
if (function_exists('mb_strlen')) {
|
||||||
return mb_strlen($string, $stringencoding);
|
return mb_strlen($string, $stringencoding);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user