26.01.2018, 17:23
You first need to check if the inputtext is a null string before comparing both strings. You could use this useful macro by ******:
PHP код:
#if !defined isnull
#define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
PHP код:
if(isnull(inputtext))
{
//Do something: display a dialog saying no text was input
return 0;
}