Please use $social_right_content = ''; instead of =null, as it ensure there will be now notice message further down the line either (a print of an empty string ('') is ok, but not for a null value)