Hi,

I encountered PHP notices when the phone field was empty. I tried to set the default value to NULL or empty string, but the error still showed up.

Undefined index: number File /sites/all/modules/cck_phone/cck_phone.module, line 497(file: /sites/all/modules/cck_phone/cck_phone.module, line 497)

I did the following patch. I'm not sure if that's the best solution but worked for me.

Comments

rooby’s picture

Title: PHP Notice on empty phone numbers » PHP Notices on empty phone number sub-fields
Priority: Minor » Normal
StatusFileSize
new717 bytes

Here is a new patch, similar to the one in the original post, but it also sets a default value for the extension as this same problem happens with it.

rooby’s picture

Issue summary: View changes

rephrase